<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>Untitled Document</title>
	</head>
	<script language=JavaScript>
		function test1(){
			//alert(document.user.username.limit);
			//alert(document.user.username.errMsg);
			//alert(document.user.username.equals);
			//var sa = "as98";
			//var ele = event.srcElement;
			//if(ele.onblur == undefined){
			//	alert("undefine");
			//}else{
			//	ele.onblur();
			//}
		//	alert(isSignName(sa));
			/*
			var es = sa.split("-");
			alert(es.length + ":" + es);
			if(es[0] == ""){
				alert("yes");
			}*/
		}
	</script>
	<script type=text/javascript src=validation.js></script>
	<script type=text/javascript src=form.js></script>
	<body>
		<form name=testForm>
		<table>
			<tr>
				<td>usercode</td>
				<td><input type=text name=usercode onblur="validElement(this,'type:signName;required:true','usercode_span','');"></td>
				<td><span id="usercode_span"></span></td>
			</tr>
			<tr>
				<td>password1</td>
				<td><input type=password name=password1 onblur="validElement(this,'required:true;len:6-8','password1_span','密码验证信息。');"></td>
				<td><span id="password1_span"></span></td>
			</tr>
			<tr>
				<td>password2</td>
				<td><input type=text name=password onblur="validElement(this,'equals:password1','password2_span','please confirm password 相同。');"></td>
				<td><span id="password2_span"></span></td>
			</tr>
			<tr>
				<td>birthday</td>
				<td><input type=text name=birthday onblur="validElement(this,'type:date;required:true','birthday_span','');"></td>
				<td><span id="birthday_span"></span></td>
			</tr>
			<tr>
				<td>email</td>
				<td><input type=text name=email onblur="validElement(this,'type:email;required:true','email_span','Must BE Email');"></td>
				<td><span id="email_span"></span></td>
			</tr>
			<tr>
				<td>age</td>
				<td><input type=text name=age onblur="validElement(this,'type:int;between:18-80','age_span','');"></td>
				<td><span id="age_span"></span></td>
			</tr>
			<tr>
				<td>realname:</td>
				<td><input type=text name=realname onblur="validElement(this,'len:6-10','realname_span','注册名，必须以字母开头。');"></td>
				<td><span id="realname_span"></span></td>
			</tr>
			<tr>
				<td>salary</td>
				<td><input type=text name=tel onblur="validElement(this,'type:float;required:true;decLen:2','','');"></td>
				<td><span id="tel_span"></span></td>
			</tr>
			<tr>
				<td>intro</td>
				<td><input type=text name=intro onblur="validElement(this,'required:true;general:false','intro_span','');"></td>
				<td><span id="intro_span"></span></td>
			</tr>
			<tr>
				<td><span id="error_msg_span"></span></td>
				<td><input type=hidden name=errorMsgSpan value="error_msg_span"></td>
				<td><input type=button value=test onclick=checkForm(this.form)></td>
			</tr>
		</table>
		</form>
		<input type=button value=test1 onclick=test1()>
	</body>
	
</html>
